package com.mtons.mblog.modules.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author 小神灯的火焰
 * 复习设置
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@Entity
@Table(name = "learn_plan_set")
public class LearnPlanSet implements Serializable {

	/**
	 * null
	 * default value: null
	 */
	@Id
	@Column(name = "id", nullable = false, length = 32)
	private String id;

	/**
	 * 复习名称
	 * default value: null
	 */
	@Column(name = "plan_name", nullable = true, length = 100)
	private String planName;

	/**
	 * 复习编码
	 * default value: null
	 */
	@Column(name = "plan_code", nullable = true, length = 20)
	private String planCode;

	/**
	 * 下次复习时长
	 * default value: 0
	 */
	@Column(name = "plan_time", nullable = true, length = 20)
	private Long planTime;

	/**
	 * 状态。 0-未生效  1-生效 
	 * default value: null
	 */
	@Column(name = "status", nullable = true, length = 1)
	private String status;

	/**
	 * 创建时间
	 * default value: null
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Column(name = "create_time", nullable = true)
	private java.util.Date createTime;

	/**
	 * 创建用户
	 * default value: null
	 */
	@Column(name = "create_user", nullable = true, length = 32)
	private long createUser;

	/**
	 * 更新时间
	 * default value: null
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Column(name = "update_time", nullable = true)
	private java.util.Date updateTime;

	/**
	 * 更新用户id
	 * default value: null
	 */
	@Column(name = "update_user", nullable = true, length = 32)
	private long updateUser;
}
